<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>充值记录</title>
    <link rel="stylesheet" type="text/css" href="${basePath}/public/css/common.css">
</head>
<body>
<div class="top-header">
    <div class="section">
        <div class="top-header-left f-left">
            <a href="#">LOGO</a>
        </div>
        <div class="top-header-right f-right">
            <c:choose>
                <c:when test="${empty user}">
                    <a href="${basePath}/home/vipUser/toLogin">登录</a>
                    <a href="${basePath}/home/vipUser/toRegisterVip">注册</a>
                    <a href="${basePath}/admin/adminUser/toLogin">后台</a>
                </c:when>
                <c:otherwise>
                    <a href="#">欢迎你!<W style="color: bisque;font-weight: bold; font-family: 微软雅黑; font-size: 20px;">${user.username}</W></a>
                    <a href="${basePath}/admin/adminUser/toLogin">后台</a>
                    <a href="${basePath}/home/vipUser/write">注销</a>
                </c:otherwise>
            </c:choose>
        </div>
    </div>
</div>

<div class="section nav-header">
    <ul class="nav-menus f-left">
        <li><a href="${basePath}/home/homepage/index">首页</a></li>
        <li><a href="${basePath}/home/homepage/toProductList" >产品列表</a></li>
        <li><a href="${basePath}/home/cart" >购物车</a></li>
        <li><a href="${basePath}/home/vipUser/index" >会员中心</a></li>
        <li><a href="${basePath}/home/News/toNews">新闻资讯</a></li>
        <li><a href="${basePath}/home/pay/contact">联系我们</a></li>
    </ul>
    <div class="f-right nav-right">
        <input type="text" class="seacher-input f-left" placeholder="输入关键字">
        <a class="seacher-but  f-left" onclick="select()">搜索</a>
    </div>
</div>

<div class="section clearfix" style="margin-top: 10px;">
    <!--页面左边-->
    <div class="left-260">
        <div class="bg-wrap">
            <div class="avatar-box">
                <a class="img-box" href="${basePath}/home/vipUser/index">
                    <img src="${basePath}/public/images/${sessionScope.userImg}">
                </a>
                <h3>
                    ${sessionScope.username}
                </h3>
                <p><b>注册会员</b></p>
            </div>
            <div class="center-nav">
                <ul>
                    <li>
                        <h2>
                            <i class="iconfont icon-order"></i>
                            <span>订单管理</span>
                        </h2>
                        <div class="list">
                            <p><a href="${basePath}/home/ShopOrder/orderList"><i class="iconfont icon-arrow-right"></i>交易订单</a></p>
                            <p><a href="${basePath}/home/UserAddress/index"><i class="iconfont icon-arrow-right"></i>收货地址</a></p>
                        </div>
                    </li>
                    <li>
                        <h2>
                            <i class="iconfont icon-amount"></i>
                            <span>余额管理</span>
                        </h2>
                        <div class="list">
                            <p><a href="${basePath}/home/vipUser/toRecharge"><i class="iconfont icon-arrow-right"></i>账户充值
                            <p><a href="${basePath}/admin/rechargeLog/Recharge"><i class="iconfont icon-arrow-right"></i>充值记录</a></p>
                        </div>
                    </li>
                    <li>
                        <h2>
                            <i class="iconfont icon-user"></i>
                            <span>账户管理</span>
                        </h2>
                        <div class="list">
                            <p><a href="${basePath}/home/vipUser/toProinfo"><i class="iconfont icon-arrow-right"></i>账户资料</a></p>
                            <p><a href="${basePath}/home/vipUser/ToUpdatePassword"><i class="iconfont icon-arrow-right"></i>修改密码</a></p>
                            <p><a href="${basePath}/home/vipUser/write"><i class="iconfont icon-arrow-right"></i>退出登录</a></p>
                        </div>
                    </li>
                </ul>
            </div>

        </div>
    </div>
    <!--/页面左边-->

    <!--页面左边-->
    <div class="right-auto">
        <div class="bg-wrap" style="min-height:765px;">


            <div class="sub-tit " style="margin: 0px;">
                <a class="add" href="javascript:window.history.go(-1)"><i class="iconfont icon-reply"></i>返回</a>
                <ul>
                    <li class="selected">
                        <a href="javascript:;">充值记录</a>
                    </li>
                </ul>
            </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ftable">
                <tbody><tr>
                    <th width="6%" align="left">编号</th>
                    <th align="left" width="20%">充值单号</th>
                    <th width="12%">充值金额</th>
                    <th width="11%">时间</th>
                </tr>
                <!--取得一个DataTable-->
                <!--取得分页页码列表-->
                <c:forEach var="m" items="${list}">
                <tr>
                    <td>${m.id}</td>
                    <td>
                            ${m.rechargeSn}
                    </td>
                    <td align="center">${m.money}</td>
                    <td align="center"><f:formatDate value="${m.addTime}"  pattern="yyyy年MM月dd日  HH:mm:ss" /></td>
                </tr>
                </c:forEach>
                </tbody></table>
        </div>
    </div>
    <!--/页面左边-->
</div>

</body>
</html>